#ifndef _graph_
#define _graph_

#include "matrix.h"
#include "list.h"

template <class tv, class te, template <class,class> class GStruct=list>
class graph:public GStruct<tv,te>
{
public:
    graph();
    explicit graph(int n);
    ~graph(){};
};

template <class tv, class te, template <class,class> class GStruct>
inline graph<tv,te,GStruct>::graph(){
    GStruct<tv,te>::resize_graph(0);
};

template <class tv, class te, template <class,class> class GStruct>
inline graph<tv,te,GStruct>::graph(int n){
    GStruct<tv,te>::resize_graph(n);
};

#endif